//
// Created by madison on 2022/1/6.
//

#include <iostream>
#include <string>

using namespace std;


void constMethod() {
    const int LENGTH = 10;
    const int WIDTH = 5;
    const char NEWLINE = '\n';
    int area;

    area = LENGTH * WIDTH;
    cout << area;
    cout << NEWLINE;
}

#define LENGTH 10
#define WIDTH  5
#define NEWLINE '\n'

int main() {
    string greeting = "hello, runoob";
    cout << greeting;
    cout << "\n";     // 换行符
    string greeting2 = "hello, \
                       runoob";
    cout << greeting2 << endl;

    int area;

    area = LENGTH * WIDTH;
    cout << area;
    cout << NEWLINE;

    constMethod();
    return 0;
}